//
//  UserInfo.h
//  iFlickr
//
//  Created by 张 霄鹤 on 09-7-3.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>


@interface UserInfo : NSObject {
	/**
	 * 用户的 NSID, 即用户ID
	 */
	NSString *nsid;
    NSString *userName;
	NSString *fullName;
	/**
	 * 用户所在地区
	 */
	NSString *location;
	/**
	 * 用户图像列表入口
	 */
	NSString *photosURL;
	/**
	 * 用户信息站点
	 */
	NSString *profileURL;
	
	NSString *auth_token;
	
	NSString *perms;
}

@property(nonatomic, retain) NSString *nsid;

@property(nonatomic, retain) NSString *userName;

@property(nonatomic, retain) NSString *fullName;

@property(nonatomic, retain) NSString *location;

@property(nonatomic, retain) NSString *photosURL;

@property(nonatomic, retain) NSString *profileURL;

@property(nonatomic, retain) NSString *auth_token;

@property(nonatomic, retain) NSString *perms;

/**
 * 将所有字段保存在 字典中
 */
-(NSDictionary *)saveInfos;

/**
 * 从infos中装载配置数据到对象中
 * @param 对象
 */
-(void)loadInfos:(NSDictionary *)infos;

@end
